using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BulletComponent : MonoBehaviour
{
    public float Speed = 100.0f;

    void Start()
    {
    }

    // Update is called once per frame
    void Update()
    {
        transform.Translate(0f, Speed * Time.deltaTime, 0f, Space.Self);
    }

    private void OnCollisionEnter(Collision collision)
    {
        Destroy(transform.parent.gameObject);
    }
}
